package com.boat.starter.jetcache.service;

import com.alicp.jetcache.Cache;
import com.alicp.jetcache.anno.CacheType;
import com.alicp.jetcache.anno.CreateCache;
import com.boat.starter.jetcache.constant.CacheConstant;

/**
 * 内置一个锁缓存，方便上层业务使用
 * @author 周江
 *
 */
public class RedisLockService {	
	/**
	 * 5分钟
	 */
	@CreateCache(name = CacheConstant.LOCK_CACHE_NAME, expire = 300, cacheType = CacheType.REMOTE)
	private Cache<Object, String> lockCache;
	
	public Cache<Object, String> getLockCache(){
		return lockCache;
	}
	
}
